import instance from './request.js'

// 产品分类的接口
export function cayteGory() {
    return instance({
        url: '/api/itemCategory',
        methods: 'get'
    })
}

// 新增分类接口
export function insertItemCategory(params) {
    return instance({
        url: '/api/itemCategory/insertItemCategory',
        methods: 'get',
        params,
    })
}

// 修改分类接口
export function updateCategory(params) {
    return instance({
        url: '/api/itemCategory/updateCategory',
        methods: 'get',
        params,
    })
}

// 删除类目接口
export function deleteContentCategoryById(params) {
    return instance({
        url: '/api/content/deleteContentCategoryById',
        methods: 'get',
        params,
    })
}

// 新增一级分类
export function insertCategory(params) {
    return instance({
        url: '/api/itemCategory/insertCategory',
        methods: 'get',
        params,
    })
}